import React, { Component } from 'react'
import Module2 from './module2';

export default class module1 extends Component {
    shouldComponentUpdate({ value }) {
        return this.props.value !== value;
    }
    render() {
        console.log('render');
        const { value } = this.props;
        return (
            <div className="module1">
                data : {value}
                <Module2 value={value.substr(0, 8)} />
            </div>
        )
    }
}
